if XtraAvailable("DirectOS") and XtraAvailable("FileIO") then
put GetUserEmailPref(1) into field "From"
put GetUserEmailPref(2) into field "MailServer"
else
alert("DirectEmail Xtra sample movie cannot locate your email and mail server addresses, because FileIO and/or DirectOS Xtras are not installed. Please enter those addresses manually, or install FileIO and DirectOS Xtras for automatic confiugration.")